


public class PictureBytesHolder {

	private byte[] m_bytes;
	private boolean m_set;
	
	public PictureBytesHolder() {
		m_set = false;
	}
	
	public synchronized void setBytes(byte[] bytes) {
		m_set = true;
		m_bytes = bytes;
	}
	
	public synchronized byte[] getBytes() {
		if (m_set) {
			return m_bytes;
		}
		else {
			return null;
		}
	}
	
}
